package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

import com.our.sys.orm.hibernate.AuditableEntity;

@Entity
@Table(name = "B_Supplier")
public class Supplier extends AuditableEntity implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -5326456601069045276L;
    @ViewField(header = "供应商名", width = 200, align = "left")
    private String name;
    @ViewField(header = "供应商级别", width = 200, align = "left")
    private String typeCode;
    @ViewField(header = "供应商描述", width = 200, align = "left")
    private String depiction;
    @ViewField(header = "简称", width = 200, align = "left")
    private String shortName;
    @ViewField(header = "地址", width = 200, align = "left")
    private String address;
    @ViewField(header = "电话", width = 200, align = "left")
    private String tel;
    @ViewField(header = "联系人", width = 200, align = "left")
    private String person;
    @ViewField(header = "国别", width = 200, align = "left")
    private String country;
    @ViewField(header = "状态", width = 100, align = "left")
    private String state;//0,有效，1无效
    @ViewField(header = "拼音助记符", width = 100, align = "left")
    private String py;
    @ViewField(header = "五笔助记符", width = 100, align = "left")
    private String wb;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_Supplier")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getDepiction() {
        return depiction;
    }

    public void setDepiction(String depiction) {
        this.depiction = depiction;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public String getWb() {
        return wb;
    }

    public void setWb(String wb) {
        this.wb = wb;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

}
